import request from '@/utils/request'

// 查询作业题目列表
export function listPracticeQues(query) {
  return request({
    url: '/exam/practiceQues/list',
    method: 'get',
    params: query
  })
}

// 查询作业题目详细
export function getPracticeQues(practiceId) {
  return request({
    url: '/exam/practiceQues/' + practiceId,
    method: 'get'
  })
}

// 新增作业题目
export function addPracticeQues(data) {
  return request({
    url: '/exam/practiceQues',
    method: 'post',
    data: data
  })
}

// 修改作业题目
export function updatePracticeQues(data) {
  return request({
    url: '/exam/practiceQues',
    method: 'put',
    data: data
  })
}

// 删除作业题目
export function delPracticeQues(practiceId) {
  return request({
    url: '/exam/practiceQues/' + practiceId,
    method: 'delete'
  })
}

// 导出作业题目
export function exportPracticeQues(query) {
  return request({
    url: '/exam/practiceQues/export',
    method: 'get',
    params: query
  })
}